/*
 * Simulator
 * Date: December 09, 2011
 * Group JEDi
 * Author(s): James Lovato, Efim Todorasco, Daniel Garrison
 */

/**
 * A class that creates a Process Request with a given instrction time
 * for a Process.
 * 
 * @author James Lovato, Efim Todorasco, Daniel Garrison
 * @version Fall 2011
 *
 */
public class ProcessRequest {
	
	/**
	 * The instruction time for this process request.
	 */
	private int interruptTime;
	
	/**
	 * The type of Process request.
	 */
	private Interrupts interruptType;
	
	/**
	 * @param inter The type of request.
	 * @param time The instruction time for this
	 * process request.
	 */
	public ProcessRequest(Interrupts inter, int time) {
		interruptTime = time;
		interruptType = inter;
	}
	
	/**
	 * @return What is the instruction when this
	 * request should be implemented?
	 */
	public int getIntTime() {
		return interruptTime;
	}
	
	/**
	 * @return What type of request is this
	 * process request?
	 */
	public Interrupts getIntType() {
		return interruptType;
	}
}
